package utils;

import java.util.Scanner;

/**
 * @author 余一
 * @date 2021/10/25  10:47
 */
public class PrintUtil {

    public static String readString(int i){
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        if (i >= next.length()) {
            return next;
        }
        return "请输入小于" + i + "个字符";
    }
}
